<?php foreach($latest as $latest):?>
<div class="newpost" id="<?=$latest->comment_id?>">
<div class="postbox"><?=$latest->comment?></div>
<div class="postinfoBox">
<div class="postinfo">
<p>Posted by:<?=$latest->name?></p>
<p>Date Posted:<?=$latest->date?></p>
<p>Time Posted: 05:05 PM</p>
 </div>
<?php if($latest->user_id==$this->session->userdata(0)->user_id){ ?>
    <img title="remove this post" id="removepost_<?=$latest->comment_id?>" class="removebtn" src="<?=base_url()?>/media/images/removepost1.jpg"/>
<?php } ?>
</div>
</div>
<?php endforeach; ?>